package com.gtw.memento.manyMementor;

import com.gtw.memento.manyState.Mementor;
import java.util.HashMap;

public class ManyMementorCaretaker {
    /**
     * 改为容纳多个备忘录的Map即可
     */
    private HashMap<String, Mementor> mementors = new HashMap<String, Mementor>();

    public Mementor getMementor(String index) {
        return mementors.get(index);
    }

    public void setMementor(String index, Mementor mementor) {
        this.mementors.put(index, mementor);
    }
}
